<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- CommonCommand.cpp -->
  <title>CommonCommand Class | OpenVisa 0.10.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html" translate="no">OpenVisa 0.10.0</a></li>
<li><a href="openvisa-module.html" translate="no">OpenVisa</a></li>
<li>CommonCommand</li>
<li id="buildversion">OpenVisa 0.10.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">CommonCommand Class</h1>
<span class="small-subtitle" translate="no">class <a href="openvisa-module.html" translate="no">OpenVisa</a>::<a href="openvisa-object.html" translate="no">Object</a>::CommonCommand</span>
<!-- $$$CommonCommand-brief -->
<p>IEEE488.2公共指令集API接口. <a href="#details">More...</a></p>
<!-- @@@CommonCommand -->
<ul>
<li><a href="openvisa-object-commoncommand-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#cls" translate="no">cls</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#ese" translate="no">ese</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#esr" translate="no">esr</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> std::string </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#idn" translate="no">idn</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#opc" translate="no">opc</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> std::vector&lt;std::string&gt; </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#opt" translate="no">opt</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#rcl" translate="no">rcl</a></b>(int <i>i</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#rst" translate="no">rst</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#setEse" translate="no">setEse</a></b>(int <i>en</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#setOpc" translate="no">setOpc</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#setSre" translate="no">setSre</a></b>(int <i>status</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#sre" translate="no">sre</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> OpenVisa::StatusByteRegisters </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#stb" translate="no">stb</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#tst" translate="no">tst</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="openvisa-object-commoncommand.html#wai" translate="no">wai</a></b>()</td></tr>
</table></div>
<!-- $$$CommonCommand-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@CommonCommand -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$cls[overload1]$$$cls -->
<h3 class="fn" translate="no" id="cls"><span class="type">void</span> CommonCommand::<span class="name">cls</span>()</h3>
<p>清除事件寄存器位和错误队列.</p>
<!-- @@@cls -->
<!-- $$$ese[overload1]$$$ese -->
<h3 class="fn" translate="no" id="ese"><span class="type">int</span> CommonCommand::<span class="name">ese</span>()</h3>
<p>事件状态查询命令。(*ESE?).</p>
<p><b>See also </b><a href="openvisa-object-commoncommand.html#setEse" translate="no">setEse</a>.</p>
<!-- @@@ese -->
<!-- $$$esr[overload1]$$$esr -->
<h3 class="fn" translate="no" id="esr"><span class="type">int</span> CommonCommand::<span class="name">esr</span>()</h3>
<p>标准事件状态寄存器查询。 查询标准事件寄存器组的事件寄存器。 事件寄存器是只读寄存器，从条件寄存器锁存事件。 设置事件位时，将忽略与该位相对应的随后发生的事件。(*ESR?).</p>
<!-- @@@esr -->
<!-- $$$idn[overload1]$$$idn -->
<h3 class="fn" translate="no" id="idn"><span class="type">std::string</span> CommonCommand::<span class="name">idn</span>()</h3>
<p>标识查询。 返回仪器的标识字符串.</p>
<!-- @@@idn -->
<!-- $$$opc[overload1]$$$opc -->
<h3 class="fn" translate="no" id="opc"><span class="type">bool</span> CommonCommand::<span class="name">opc</span>()</h3>
<p>在所有的未决命令完成后，将 1 返回到输出缓冲器。 在该命令完成之前，无法执行其他命令。</p>
<p><b>See also </b><a href="openvisa-object-commoncommand.html#setOpc" translate="no">setOpc</a>.</p>
<!-- @@@opc -->
<!-- $$$opt[overload1]$$$opt -->
<h3 class="fn" translate="no" id="opt"><span class="type">std::vector</span>&lt;<span class="type">std::string</span>&gt; CommonCommand::<span class="name">opt</span>()</h3>
<p>返回标识任何已安装选件的字符串。</p>
<!-- @@@opt -->
<!-- $$$rcl[overload1]$$$rclint -->
<h3 class="fn" translate="no" id="rcl"><span class="type">void</span> CommonCommand::<span class="name">rcl</span>(<span class="type">int</span> <i>i</i>)</h3>
<p>调用寄存器保存文件 <i translate="no">i</i>.</p>
<!-- @@@rcl -->
<!-- $$$rst[overload1]$$$rst -->
<h3 class="fn" translate="no" id="rst"><span class="type">void</span> CommonCommand::<span class="name">rst</span>()</h3>
<p>重置仪表状态.</p>
<!-- @@@rst -->
<!-- $$$setEse[overload1]$$$setEseint -->
<h3 class="fn" translate="no" id="setEse"><span class="type">void</span> CommonCommand::<span class="name">setEse</span>(<span class="type">int</span> <i>en</i>)</h3>
<p>事件状态启用命令 <i translate="no">en</i>, 为标准事件寄存器组启用使能寄存器中的位。 随后将所选位报告给状态字节寄存器的 5 位。 使能寄存器可定义事件寄存器中的哪些位将被报告给“状态字节”寄存器组。 使能寄存器是可读写的。 (*ESE).</p>
<p><b>See also </b><a href="openvisa-object-commoncommand.html#ese" translate="no">ese</a>.</p>
<!-- @@@setEse -->
<!-- $$$setOpc[overload1]$$$setOpc -->
<h3 class="fn" translate="no" id="setOpc"><span class="type">void</span> CommonCommand::<span class="name">setOpc</span>()</h3>
<p>在完成当前操作时，在标准事件寄存器中设置“操作完成”（0 位）。(*OPC).</p>
<p><b>See also </b><a href="openvisa-object-commoncommand.html#opc" translate="no">opc</a>.</p>
<!-- @@@setOpc -->
<!-- $$$setSre[overload1]$$$setSreint -->
<h3 class="fn" translate="no" id="setSre"><span class="type">void</span> CommonCommand::<span class="name">setSre</span>(<span class="type">int</span> <i>status</i>)</h3>
<p>服务请求启用 <i translate="no">status</i>, 为状态字节寄存器组启用使能寄存器中的位。 使能寄存器可定义事件寄存器中的哪些位将被报告给“状态字节”寄存器组。 使能寄存器是可读写的。(*SRE).</p>
<p><b>See also </b><a href="openvisa-object-commoncommand.html#sre" translate="no">sre</a>.</p>
<!-- @@@setSre -->
<!-- $$$sre[overload1]$$$sre -->
<h3 class="fn" translate="no" id="sre"><span class="type">int</span> CommonCommand::<span class="name">sre</span>()</h3>
<p>查询服务请求是否启用 (*SRE?).</p>
<p><b>See also </b><a href="openvisa-object-commoncommand.html#setSre" translate="no">setSre</a>.</p>
<!-- @@@sre -->
<!-- $$$stb[overload1]$$$stb -->
<h3 class="fn" translate="no" id="stb"><span class="type">OpenVisa::StatusByteRegisters</span> CommonCommand::<span class="name">stb</span>()</h3>
<p>读取状态字节查询。 查询状态字节寄存器组的条件寄存器并返回一个十进制值，该值等于寄存器中设置的所有位的二进制加权值总和。 条件寄存器可不间断地监控仪器的状态。 条件寄存器位实时更新；它们既不锁定亦无缓冲。</p>
<!-- @@@stb -->
<!-- $$$tst[overload1]$$$tst -->
<h3 class="fn" translate="no" id="tst"><span class="type">bool</span> CommonCommand::<span class="name">tst</span>()</h3>
<p>执行仪器的基本自检并返回通过/失败指示.</p>
<!-- @@@tst -->
<!-- $$$wai[overload1]$$$wai -->
<h3 class="fn" translate="no" id="wai"><span class="type">void</span> CommonCommand::<span class="name">wai</span>()</h3>
<p>配置仪器的输出缓冲区，等待所有未决操作完成之后，再通过接口执行任何其他命令。</p>
<!-- @@@wai -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> OpenVisa
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
